﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Refract.MVVM;

namespace Refract.ReferenceApplication.Module1
{
    public class ViewModel1 : ViewModel, IDataContainer<string>
    {
        private string _Text;
        public string Text
        {
            get
            {
                return _Text;
            }
            set
            {
                _Text = value;
                RaisePropertyChanged(new { Text });
            }
        }

        public void SetData(string data)
        {
            Text = data;
        }

        public string GetData()
        {
            return Text;
        }
    }
}
